  function xxk(xx,yy)
	 {

	 closeAll();
	     document.getElementById(xx).style.display="block";
		 document.getElementById(yy).className="incs1";
		 	// pagesHeight();
	 }
    function closeAll()
	{
	     document.getElementById("inx1").style.display="none";
	//	 document.getElementById("inx2").style.display="none";
		 document.getElementById("inx3").style.display="none";
		 document.getElementById("inc1").className="incs2";
	//	 document.getElementById("inc2").className="incs2";
		 document.getElementById("inc3").className="incs2";
		 
	}
	
	
var dialogFirst=true; 
function dialog(title,content,width,height,cssName){ 
if(dialogFirst==true){ 
var temp_float=new String; 
temp_float="<div id=\"floatBoxBg\" style=\"height:"+$(document).height()+"px;filter:alpha(opacity=0);opacity:0;\"></div>"; 
temp_float+="<div id=\"floatBox\" class=\"floatBox\">"; 
temp_float+="<div class=\"title\"><h4></h4><span><img src=\""+ _basepath +"images/cha.gif\" width=\"22\" height=\"23\" /></span></div>"; 
temp_float+="<form action=\"../system/login.do\" name=\"form2\" method=\"post\">";
temp_float+="<div class=\"content\"></div>";
temp_float+="<div style=\"background:#0C7FDA; width:100%;\"><div style=\"float:right; padding-top:3px\"><a href=\"javaScript:submitform2();\"><img src=\"" + _basepath + "articles/images/login.gif\" /></a></div></div> ";
temp_float+="</form>";
temp_float+="</div>"; 
$("body").append(temp_float); 
dialogFirst=false; 
} 
$("#floatBox .title span").click(function(){ 
$("#floatBoxBg").animate({opacity:"0"},"normal",function(){$(this).hide();}); 
$("#floatBox").animate({top:($(document).scrollTop()-(height=="auto"?300:parseInt(height)))+"px"},"normal",function(){$(this).hide();}); 
_strUrl="";
$("#loginName").focus();
}); 
$("#floatBox .title h4").html(title); 
contentType=content.substring(0,content.indexOf(":")); 
content=content.substring(content.indexOf(":")+1,content.length); 
//switch(contentType){ 
//case "url": 
var content_array=content.split("?"); 
$("#floatBox .content").ajaxStart(function(){ 
$(this).html("loading..."); 
}); 
$.ajax({ 
type:content_array[0], 
url:content_array[1], 
data:content_array[2], 
error:function(){ 
$("#floatBox .content").html("error..."); 
}, 
success:function(html){ 
$("#floatBox .content").html(html); 
$("#loginNames").focus();
} 
}); 
//break; 
//case "text": 
//$("#floatBox .content").html(content); 
//break; 
//case "id": 
//$("#floatBox .content").html($("#"+content+"").html()); 
//break; 
//case "iframe": 
//$("#floatBox .content").html("<iframe src=\""+content+"\" width=\"100%\" height=\""+(parseInt(height)-70)+"px"+"\" scrolling=\"auto\" frameborder=\"0\" marginheight=\"0\" marginwidth=\"0\"></iframe>"); 
//} 
//function (){  }
$("#floatBoxBg").show(); 
$("#floatBoxBg").animate({opacity:"0.8"},"fast"); 
// $("#floatBox").attr("class","floatBox "+cssName); 
$("#floatBox").css({display:"block",left:(($(document).width())/2-(parseInt(width)/2))+"px",top:($(document).scrollTop()-(height=="auto"?500:parseInt(height)))+"px",width:width,height:height}); 
//$("#floatBox").animate({top:($(document).scrollTop()+50)+"px"},"normal"); 
$("#floatBox").animate({opacity:"1"},"normal"); 

}

function zhibanbiao(riqi){
	$.get(_basepath + "tjsinfo/tjsoa/zhiban/selectIsZhiBanByType.do",{datetime:riqi,type:1},function(data){
			if(data == 'false'){				
				$.get(_basepath + "tjsinfo/tjsoa/zhiban/selectIsZhiBanByType.do",{datetime:riqi,type:2},function(data){
						if(data == 'false'){				
							alert( '没有该月的值班信息');
									
						}else{
							window.open(_basepath+'/tjsinfo/tjsoa/zhiban/selectFangXunZhiBan.do?riqi='+riqi);							
						}
				});	
						
			}else{
				
				window.open(_basepath+'/tjsinfo/tjsoa/zhiban/selectGanBuZhiBan.do?riqi='+riqi);		
			}
	});	
	
}